﻿<Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
        xmlns:d3d="clr-namespace:System.Windows.Interop;assembly=PresentationCore"
        Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded_1">
    <Grid Name="grid">
        <Image Name="conImg">
            <Image.Source>
                <d3d:D3DImage x:Name="img"/>
            </Image.Source>
        </Image>
        <Ellipse Stroke="Black"/>
        <Button Opacity="0.5" Content="开始" HorizontalAlignment="Left" Width="75" VerticalAlignment="Bottom" Click="Button_Click_1"/>
        <Button Opacity="0.5" Content="停止" HorizontalAlignment="Right" Width="75" VerticalAlignment="Bottom" Click="Button_Click_2"/>
    </Grid>
</Window>
